﻿<Window x:Class="QuickWPFMonthCalendar.Create"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Create" Height="415" Width="540" WindowStyle="ToolWindow" WindowState="Normal" WindowStartupLocation="CenterScreen" Icon="/MyDiary;component/Diary-Photo-Sunflower.ico">
    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="100" />
        </Grid.ColumnDefinitions>

        <Grid Grid.Row="0" Grid.Column="0">

            <Grid.RowDefinitions>
                <RowDefinition Height="30"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" x:Name="btnTitle" FontSize="20"></TextBlock>
            <!--<Button x:Name="btnTitle" Grid.Row="0" Click="btnTitle_Click" />-->
            <Image Grid.Row="1" x:Name="bg" Source="/MyDiary;component/Images/Blue.jpg" Stretch="UniformToFill"></Image>
            <TextBox Width="auto" Grid.Row="1"    HorizontalAlignment="Stretch"  Name="txbBody" VerticalAlignment="Stretch"   VerticalContentAlignment="Stretch" Margin="0,0,0,0" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Visible" Background="#00000000">

            </TextBox>
        </Grid>
        <Button x:Name="btnSave" Click="btnSave_Click" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,338,0,0"  HorizontalAlignment="Left" VerticalAlignment="Center" BorderBrush="#02000000" Background="#00000000" MinWidth="35" MinHeight="35" MaxWidth="35" MaxHeight="35">
            <Image  Source="/MyDiary;component/Images/save.png"  Stretch="Uniform"  ></Image>
        </Button>
        <Button x:Name="btnDelete" Click="btnDelete_Click" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,338,20,0"  HorizontalAlignment="Right" VerticalAlignment="Center" BorderBrush="#02000000" Background="#00000000" MinWidth="35" MinHeight="35" MaxWidth="35" MaxHeight="35">
            <Image  Source="/MyDiary;component/Images/delete.png"  Stretch="Uniform"  ></Image>
        </Button>

        <Grid Grid.Row="0" Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <Grid Grid.Row="0" Grid.Column="0">

                <Grid.RowDefinitions>
                    <RowDefinition Height="32" />
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Button Grid.Row="0"  Click="AddButton_Click" Width="32"  HorizontalAlignment="Right" VerticalAlignment="Center" BorderBrush="#02000000" Background="#00000000">
                    <Image Source="/MyDiary;component/Images/image_add.png"  Stretch="Fill"  ></Image>
                </Button>
               
                <ListBox Grid.Row="1" x:Name="lstImage"  HorizontalAlignment="Stretch"  VerticalAlignment="Stretch" SelectionChanged="lstImage_SelectionChanged" KeyDown="lstImage_KeyDown" />




            </Grid>
        </Grid>

        <Popup Name="popup1"  Height="380" Width="540" Placement="Center" PopupAnimation="Fade" AllowsTransparency="True" >

            <Grid Background="Transparent">
                <Grid Name="popupBackground" Background="#6E000000" Grid.Column="0" Grid.Row="0" />
                <Calendar x:Name="clrDate" SelectedDatesChanged="clrDate_SelectedDatesChanged"></Calendar>
            </Grid>
        </Popup>

    </Grid>
</Window>
